
import 'package:get/get.dart';
import 'package:lx_widgets_library/lx_widgets_library.dart';

import '../models/order_model.dart';

class EditOrderState {
  // bool 监听器
  final RxMap booleansMap = {}.obs;

  // 资源全部上传完成
  RxBool assetUploadCompleted = false.obs;

  // 工单数据
  ReportOrderInfo reportOrderInfo = ReportOrderInfo.fromMap({});

  // 报修类型
  final List<ReportType> reportTypes = <ReportType>[
    ReportType.exterior,
    ReportType.noise,
    ReportType.motor,
    ReportType.battery,
    ReportType.app,
    ReportType.firmware,
    ReportType.other
  ].obs;

  // 是否可以提交‘工单’
  RxBool allowedSubmit = false.obs;

  // 蓝牙连接成功
  RxBool bleConnected = false.obs;

  // 已经检测错误
  final RxBool isCheckedErr = false.obs;

  // 是中国区域
  RxBool isChineseRegion = false.obs;
}
